#ifndef ST7920_H_INCLUDED
#define ST7920_H_INCLUDED
#include "def_globales.h"
#define DATA    PORTC
#define DATA_DDR    DDRC
#define DATA_IN     PINC
#define CONTROL PORTD
#define E    4
#define RW   3
#define RS   2
#define PSB  5
#define RST  7
//pin 7 del puerto de datos
#define busy 7

#define enable   SETB(CONTROL,E); _delay_us(2); CLRB(CONTROL,E) //E = 0;
void lcd_init();
void clr_lcd();
void send_com(unsigned char cmd);
void send_data(unsigned char dat);
void Cursor_turn();
void Cursor_ON();
void Cursor_OFF();
void Local_Code_Clear();
void chk_busy();
void set_xy(unsigned char xpos,unsigned char ypos);
void print(unsigned char x,unsigned char y,char* str);
void printstr(unsigned char x,unsigned char y,unsigned char str[],unsigned char k);
void ClearGraphics();
//void sleep(int milisegundos);
void PutBMP(unsigned char *puts);
void Graphic_ON();
void Graphic_OFF();
void X_Straight_Line(unsigned char line);
void Draw_Dot(unsigned char X,unsigned char Y)	;
void Draw_Circle(unsigned char  xcenter, unsigned char  ycenter, unsigned char radius);
void Draw_Rectangle(unsigned char x, unsigned char y, unsigned char a, unsigned char b);

#endif // ST7920_H_INCLUDED
